using System;

namespace Aragorn.SOA.ORM.Lambda.Adapter
{
	internal class SqlAdapterBase
	{
		public SqlAdapterBase()
		{
		}

		public string DeleteString(string source, string conditions)
		{
			return string.Format("DELETE  FROM {0} {1} ", source, conditions);
		}

		public string QueryString(string selection, string source, string conditions, string order, string grouping, string having)
		{
			object[] objArray = new object[] { selection, source, conditions, order, grouping, having };
			return string.Format("SELECT {0} FROM {1} {2} {3} {4} {5}", objArray);
		}
	}
}